home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
pas_all.zip
/
TI426.ASC
< prev
next >
Wrap
Text File
|
1992-08-12
|
2KB
|
133 lines
PRODUCT : TURBO PASCAL DATABASE TOOLBOX NUMBER : 426
VERSION : 4.0
OS : MS-DOS, PC-DOS
DATE : AUGUST 29, 1988 PAGE : 1/2
TITLE : DATABASE TOOLBOX SUGGESTIONS AND CORRECTIONS
This handout addresses some problems which have been reported by
users of the Turbo Pascal DataBase ToolBox version 4.0
Correction
When accessing an Index File that allows duplicate keys and has
greater than 32K records, the Index Key routines, FindKey and
SearchKey will be unsuccessful in finding keys for records past
32K. By making the following changes to TACCESS.PAS, this proble
1. In the TaCompKeys procedure change the old code to look as
follows:
begin
if TaKeyStr(K1) = TaKeyStr(K2) then
begin
if not Dup or (DR1 = DR2) then
TaCompKeys := 0
else
if DR1 > DR2 then
TaCompKeys := 1
else
TaCompKeys := -1;
end
else
if TaKeyStr(K1) > TaKeyStr(K2) then
TaCompKeys := 1
else
TaCompKeys := -1;
end;
2. Save the changes to TACCESS.PAS. Call TaBuild for each
.TYP file to create a new TACCESS.TPU file. Rebuild all Index
Files.
Recommended Suggestion
Users have reported unusual errors occurring in their DataBase
ToolBox programs. Many of these errors can be solved by running
TaBuild with the /W+ option to display the worksheet. The
PRODUCT : TURBO PASCAL DATABASE TOOLBOX NUMBER : 426
VERSION : 4.0
OS : MS-DOS, PC-DOS
DATE : AUGUST 29, 1988 PAGE : 2/2
TITLE : DATABASE TOOLBOX SUGGESTIONS AND CORRECTIONS
worksheet will show that 1,000 records will be the expected size
of
For existing Data Files, where greater than 1,000 records are
expected, it is recommended that you build a new TACCESS unit
using the worksheet to set the maximum number of records. This
requires that all Index Files be rebuilt.
DISCLAIMER: You have the right to use this technical information
subject to the terms of the No-Nonsense License Statement that
you received with the Borland product to which this information
pertains.